{{- if and (not (.Values.global.enabledModules | has "user-authn")) .Values.global.clusterIsBootstrapped }}
---
apiVersion: v1
kind: Secret
metadata:
  name: documentation-basic-auth
  namespace: d8-system
  {{- include "helm_lib_module_labels" (list . (dict "app" "documentation")) | nindent 2 }}
type: Opaque
data:
  auth: {{ print "admin:{PLAIN}" .Values.documentation.internal.auth.password | b64enc | quote }}
{{- end }}
